<?php
/**
 * Created by PhpStorm.
 * User: xiaofeng
 * motto: 现在的努力是为了小时候吹过的牛逼！
 * Date: 2020/1/13
 * Time: 11:10
 */

namespace app\admin\controller;

class Logout extends AdminBase {

    public function index(){
        //清除 session

        session(config("admin.session_admin"),null);

        return redirect(url("login/index"));
    }
}